package com.ivanceras.shared.util;


public class SpecialCase {

	public static String getEquiv(String att) {
		if(att.equals("ad_language")){
			att = "ad_language_code";
			return att;
		}
		return att;
	}
	
	static String[] keywords = {"order", "limit", "select", "group", "by", "offset"};
	
	public static String correctKeyWords(String column){
		if(inArray(column)){
			System.err.println("MATCHED special case: "+column);
			return "\""+column+"\"";
		}else{
			return column;
		}
	}
	
	static boolean inArray(String column){
		if(column == null){
			return false;
		}
		for(String key : keywords){
			if(column.equals(key)){
				return true;
			}
		}
		return false;
	}

}
